package com.yanqu.road.logic.sort;

import com.yanqu.road.entity.rank.UnionRank;

import java.util.Comparator;

public class UnionRankSort implements Comparator<UnionRank> {
    @Override
    public int compare(UnionRank o1, UnionRank o2) {
        return o2.getUnionBaseInfo().getTotalEarnSpeed().compareTo(o1.getUnionBaseInfo().getTotalEarnSpeed());
    }
}
